export const arrDictToSelectDict = (arr: any[] | undefined, name?: string, value?: string, deps?: any[]) => {
  const oldList = deps || [];
  if (!arr || !(arr instanceof Array)) {
    return [];
  }
  const filter = arr?.map((v) => ({
    label: v[name || 'DATA_NAME'],
    value: v[value || 'DATA_ID'],
  }));
  return [...oldList, ...filter];
};
